<template>
  <div class="footer">
    <router-view />
    <van-tabbar v-model="active" active-color="#ff4f02" route>
      <van-tabbar-item icon="wap-home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="bars" to="/menu">分类</van-tabbar-item>
      <van-tabbar-item icon="shopping-cart-o" to="/car">购物车</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/user">个人中心</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  props: ["active"],
  data() {
    return {
      // active: 0
    };
  }
};
</script>

<style lang="less" >
</style>